package com.ty.paypal.core.request;

import com.paypal.http.Headers;
import com.paypal.http.HttpRequest;
import com.ty.paypal.core.Product;
import com.ty.paypal.core.request.body.ProductRequest;

/**
* @author ty
* @createDate 创建时间：2020年2月21日 下午4:42:32
**/
public class ProductCreateRequest extends HttpRequest<Product>{

	public ProductCreateRequest() {
		super("/v1/catalogs/products", "POST", Product.class);
		header(Headers.CONTENT_TYPE, "application/json");
	}
	
    public ProductCreateRequest PayPalRequestId(String PayPalRequestId) {
        header("PayPal-Request-Id", String.valueOf(PayPalRequestId));
        return this;
    }
    
	public ProductCreateRequest requestBody(ProductRequest body) {
        super.requestBody(body);
        return this;
    }
	
}
